package com.ruoyix.im.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyix.common.core.domain.R;
import com.ruoyix.common.core.page.TableDataInfo;
import com.ruoyix.common.core.domain.PageQuery;
import com.ruoyix.im.domain.ImChatUserGroupMessage;
import com.ruoyix.im.domain.bo.ImChatUserGroupMessageBo;
import com.ruoyix.im.domain.vo.GroupMessageVO;
import com.ruoyix.im.domain.vo.ImChatUserGroupMessageVo;

import java.util.Collection;
import java.util.List;

/**
 * 群聊记录Service接口
 *
 * @author ruoyi
 * @date 2024-05-27
 */
public interface IImChatUserGroupMessageService extends IService<ImChatUserGroupMessage> {

    /**
     * 查询群聊记录
     */
    ImChatUserGroupMessageVo queryById(Long id);

    /**
     * 查询群聊记录列表
     */
    TableDataInfo<ImChatUserGroupMessageVo> queryPageList(ImChatUserGroupMessageBo bo, PageQuery pageQuery);

    /**
     * 查询群聊记录列表
     */
    List<ImChatUserGroupMessageVo> queryList(ImChatUserGroupMessageBo bo);

    /**
     * 新增群聊记录
     */
    Boolean insertByBo(ImChatUserGroupMessageBo bo);

    /**
     * 修改群聊记录
     */
    Boolean updateByBo(ImChatUserGroupMessageBo bo);

    /**
     * 校验并批量删除群聊记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    public R<Page> getPagePoetryResult(Long current, Long size, Long groupId);
}
